<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
			<script type="text/javascript">
			var date1 = new Date();
			console.log(date1.getTime());//1566200664548 从1970年 一月一日到现在的毫秒数
			console.log(date1);//Mon Aug 19 2019 15:44:24 GMT+0800 (中国标准时间)
			
			var date2 = new Date("2013/3/20 11:30");
			console.log(date2);//Wed Mar 20 2013 11:30:00 GMT+0800 (中国标准时间)
			
			var year = date1.getFullYear();
			console.log(year);//2019
			var month = date1.getMonth();
			console.log(month);//7 月份少1
			
			
			console.log(eval("2+3"));
			console.log(eval("var a = 10; var b = 20;console.log(a*b)"));
			var b = document.getElementById("a");
			console.log(b);
//			b.innerHTML = document.getElementById("a")!=<div id="a">dasdsa</div>;
		</script>
	</head>
	<body>
		<div id="a">dasdsa</div>
				
	</body>
</html>
